package com.entity.aftersales;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("after_sales")
@ApiModel("售后总括表实体类")
public class AfterSales {

    @ApiModelProperty(value = "售后问题唯一标识")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "售后问题编号，唯一标识")
    @TableField("order_number")
    private String orderNumber;

    @ApiModelProperty(value = "客户公司ID")
    @TableField("customer_id")
    private Long customerId;

    @ApiModelProperty(value = "售后问题整体状态")
    @TableField("status")
    private String status;

    @ApiModelProperty(value = "售后任务开始时间")
    @TableField("start_time")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "售后任务结束时间（可为空）")
    @TableField("end_time")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "创建时间，默认为当前时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "最后更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "创建人（技术指挥部人员）")
    @TableField("created_by")
    private String createdBy;

    @ApiModelProperty(value = "简要描述（可选）")
    @TableField("description")
    private String description;

    @ApiModelProperty(value = "项目类型（分为重点和一般作为奖金区分）")
    @TableField("project_type")
    private String projectType;

    @ApiModelProperty(value = "服务天数")
    @TableField("service_days")
    private Double serviceDays;

    @ApiModelProperty(value = "差旅费")
    @TableField("travel_expense")
    private Double travelExpense;
}